/*
* Copyright (c) 2011
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
*
* Contributors:
*
* Description:
*
*/
#include "WirelessRemote.h"

#include <QtGui>
#include <QApplication>

// Needed Symbian specific headers
#ifdef Q_OS_SYMBIAN
#include <eikenv.h>
#include <eikappui.h>
#include <aknenv.h>
#include <aknappui.h>
#endif

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

#ifdef Q_OS_SYMBIAN
   CAknAppUi* appUi = dynamic_cast<CAknAppUi*> (CEikonEnv::Static()->AppUi());
   TRAP_IGNORE(
       if (appUi) {
           // Lock application orientation into landscape
           appUi->SetOrientationL(CAknAppUi::EAppUiOrientationPortrait);
       }
   );
#endif

    WirelessRemote w;
#if defined(Q_OS_SYMBIAN) || defined (Q_WS_MAEMO_5)
    w.showFullScreen();
#else
    w.showNormal();
#endif

    return a.exec();
}
